package com.mkyong.web.controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/*
 * <p>项目名称: yyd </p> 
 * <p>文件名称: ErrorController.java </p> 
 * <p>描述: [类型描述] </p>
 * <p>创建时间: Apr 17, 2019 </p>
 * @author yys
 * @version v1.0
 * @update
 * @date Apr 17, 2019 10:45:57 AM
 */
@Controller
@RequestMapping("error")
public class ErrorController {
	private static final String BASE_DIR = "error/";
	@RequestMapping("400")
	public String handle1(HttpServletRequest request){
		return BASE_DIR + "400";
	}
	@RequestMapping("404")
	public String handle2(HttpServletRequest request){
		return BASE_DIR + "404";
	}
	@RequestMapping("500")
	public String handle3(HttpServletRequest request){
		return BASE_DIR + "500";
	}
}


